package com.pan.admin.module.loanConfig.entity;

import com.pan.admin.common.annotation.Excel;
import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 协议配置(注册协议、隐私协议、单协议）对象 loan_protocol
 *
 * @author ts
 * @date 2023-09-27
 */
public class LoanProtocol extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 协议名称
     */
    @Excel(name = "协议名称")
    private String name;

    /**
     * 协议内容
     */
    @Excel(name = "协议内容")
    private String text;

    /**
     * 协议唯一编码
     */
    @Excel(name = "协议唯一编码")
    private String uniqueCode;

    /**
     * 协议类型
     */
    @Excel(name = "协议类型")
    private Long type;

    /**
     * 状态0禁用1启用(默认启用)
     */
    @Excel(name = "状态0禁用1启用(默认启用)")
    private Long status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setUniqueCode(String uniqueCode) {
        this.uniqueCode = uniqueCode;
    }

    public String getUniqueCode() {
        return uniqueCode;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("text", getText())
                .append("uniqueCode", getUniqueCode())
                .append("type", getType())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
